package com.cdp.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdp.common.core.domain.AjaxResult;
import com.cdp.common.core.domain.entity.SysOtherAdmixtures;
import com.cdp.system.dto.SysOtherAdmixturesDTO;
import com.cdp.system.mapper.SysOtherAdmixturesMapper;
import com.cdp.system.service.SysOtherAdmixturesService;
import com.cdp.system.vo.SysOtherAdmixturesVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysOtherAdmixturesServiceImpl
        extends ServiceImpl<SysOtherAdmixturesMapper, SysOtherAdmixtures>
        implements SysOtherAdmixturesService {



    @Autowired
    private  SysOtherAdmixturesMapper sysOtherAdmixturesMapper;

    @Override
    public Map<String, Object> queryMineralMaxMin() {
        return sysOtherAdmixturesMapper.queryMineralMaxMin();
    }



    @Override
    public AjaxResult ListOtherAdmixtures(SysOtherAdmixturesDTO sysOtherAdmixturesDTO) {
     List<SysOtherAdmixturesVO>  sysOtherAdmixturesVOS =sysOtherAdmixturesMapper.ListOtherAdmixtures(sysOtherAdmixturesDTO);
        return AjaxResult.success(sysOtherAdmixturesVOS);
    }
}
